package com.ls.lserp.modules.sys.dao;



import java.util.List;
import java.util.Map;

import com.ls.lserp.common.persistence.CrudDao;
import com.ls.lserp.common.persistence.annotation.MyBatisDao;
import com.ls.lserp.modules.sys.entity.Shop;
@MyBatisDao
public interface ShopDao extends CrudDao<Shop>{
    
    /**
     *  插入用户关联表
     * @param map
     * @return
     */
    public int insertShopId(Map map);
    
    /**
     * 获取店铺用户信息
     * @param shopId
     * @return
     */
    public String getShopUser(String shopId);
    
    /**
     * 删除店铺款式信息
     * @param shop
     * @return
     */
    public int deleteShopStyle(Shop shop);
    
    /**
     * 添加店铺款式信息
     * @param shop
     * @return
     */
    public int insertShopStyle(Shop shop);
        
    /**
     * 查询店铺款式信息
     * @param map
     * @return
     */
    public List<Map<String,Object>> findShopStyle(String id); 
    
    
    /**
     * 根据店铺名称查询店铺信息
     * @param name
     * @return
     */
    public Shop getShopByShopName(Shop shop);
    
    /**
     * 财务添加店铺信息
     * @param shop
     * @return
     */
    public int insertshopFundView(Shop shop);
    
    /**
     * 跟新财务表
     */
    
    public int updateShopFundView(Shop shop);
}
